package com.woniu.his.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.woniu.his.entity.BillInfo;
import com.woniu.his.entity.IncomeRecord;
import com.woniu.his.entity.PayInfo;

import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

public interface FinanceMapper extends BaseMapper<PayInfo> {
    List<BillInfo> findByMedicalIdPatientName(int medicalId);

    List<BillInfo> findAllBills();

    int addIncomeRecord(String patientName1, int medicalId1, String incomeDetail, BigDecimal incomePrice, int incomeCount, BigDecimal totalPrice, Date incomeTime, int status, int doctorId);

    int updateStatus();

    List<IncomeRecord> findIncomeRecord();

    BigDecimal findTotalIncome();
}
